﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NFLManager;

namespace NFLManagerViewer
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void updateTeamsStatsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Controller cntllr = new Controller();
            //cntllr.updateTeamsStats();
            //cntllr.createXLS();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            BenchForm bForm = new BenchForm();
            bForm.Location = new Point(400,100);
            bForm.Show();
        }

        public void setProgressBarParameters(int min, int max, int step)
        {
            progressBar.Visible = true;
            progressBar.Minimum = min;
            progressBar.Maximum = max;
            progressBar.Step = 1;
        }

        public void incrementProgressBar()
        {
            progressBar.Increment(progressBar.Step);
        }

        public void hideProgressBar()
        {
            progressBar.Visible = false;
        }

    }
}
